import time
from selenium import webdriver
# 1.创建浏览器对象
driver = webdriver.Chrome()
# 2.打开网页
driver.get("https://www.jd.com/")
# 3.暂停3s
time.sleep(3)
# 4.关闭驱动对象(即关闭网页)
driver.quit()